<?php
namespace core;
class Imop
{
    public static $classMap = array();
    static public function run() {
        $route = new \core\lib\route();


    }
    /*
  自动加载的功能
  */
    static public function load($class) {
        // 自动加载类库
        // new \core\Route()
        // $class = '\core\Route'
        // Imop.'/core/route.php'
        if (isset($classMap[$class])) {
            return true;
        } else {
            $class = str_replace('\\', '/', $class);
            $file = Imop.'/'.$class.'.php';
            if (is_file($file)) {
                include $file;
                self::$classMap[$class] = $class;
            } else {
                return false;
            }
        }
    }
}